package com.cloud.elm.service;

import com.cloud.elm.po.OrderDetailet;
import com.cloud.elm.po.Orders;

import java.util.List;

public interface OrdersService {

	int createOrders(Orders orders);
	Orders getOrdersById(Integer orderId);
	List<Orders> listOrdersByUserId(String userId);

	void updateOrderState(Integer state, Integer orderId);

    List<Orders> listOrdersByBusinessId(String businessId);

	List<OrderDetailet> getOrderDetailetByOrderId(Integer orderId);

    void cancelOrder(Integer orderId);

	Integer getOrderId(String userId, String businessId, String orderDate);
}
